Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Unified TimeSeriesChart component #879

Merged
merged 6 commits into from
Oct 30, 2023
Merged

feature: Unified TimeSeriesChart component #879

merged 6 commits into from
Oct 30, 2023

Conversation

idreyn
Copy link
Contributor

@idreyn idreyn commented Oct 19, 2023

Motivation

We have an awful lot of duplicated code in our charts. Usually when I need to make one I copy some code from a similar chart and make some very minor adjustments. So I've decided to take a crack at a unified TimeSeriesChart component that we should be able to use as the basis for basically all the charts in the DD where the x-axis is time.

Changes

No changes to existing functionality, only a new component that I'll definitely use for new work, and may start retrofitting into existing dashboard tabs.

Testing Instructions

npm run storybook and visit the TimeSeriesChart component page. Here are some examples of what this can do with a fairly minimal configuration:

image

image

image

@github-actions github-actions bot added the frontend Change to frontend code label Oct 19, 2023
@idreyn idreyn requested a review from janeadams October 20, 2023 00:06
Copy link
Member

@PatrickCleary PatrickCleary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be great. Thanks!

@idreyn idreyn merged commit 2a3b07d into main Oct 30, 2023
5 checks passed
@idreyn idreyn deleted the idr/timeseries branch October 30, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Change to frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants